<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    x:Class="OpenLS.UI.PopupServiceResources"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ControlTemplate TargetType="{x:Type ContentControl}" x:Key="popupContentControl">
        <Grid Background="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}">
            <Grid.RowDefinitions >
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <Rectangle MouseMove="Rectangle_MouseMove" MouseDown="Rectangle_MouseDown" MouseUp="Rectangle_MouseUp" 
                       Height="20"
                       Fill="Transparent"/>
            <Button Grid.Row="0" BorderThickness="1" IsCancel="True" 
                    HorizontalAlignment="Right" Height="16" Width="16" MinWidth="0" MinHeight="0" Margin="2">
                <Path Data="M0 0 L 16 16 M 0 16 L 16 0" Stroke="Black" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            </Button>
            <ContentPresenter Grid.Row="1" Margin="3"/>
        </Grid>
    </ControlTemplate>
    
</ResourceDictionary>